package com.ge.modules.sys.service.impl;

import com.ge.modules.dao.TbCommodityTypeDao;
import com.ge.modules.entity.TbCommodityTypeEntity;
import com.ge.modules.sys.service.SysCommodityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class SysCommodityTypeServiceImpl implements SysCommodityTypeService {
	@Autowired
	private TbCommodityTypeDao commodityTypeDao;
	
	@Override
	public TbCommodityTypeEntity queryObject(Integer id){
		return commodityTypeDao.queryObject(id);
	}
	
	@Override
	public List<TbCommodityTypeEntity> queryList(Map<String, Object> map){
		return commodityTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return commodityTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbCommodityTypeEntity commodityType){
		commodityTypeDao.save(commodityType);
	}

	@Override
	public void update(TbCommodityTypeEntity commodityType){
		commodityTypeDao.update(commodityType);
	}
	
	@Override
	public void delete(Integer id){
		commodityTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		commodityTypeDao.deleteBatch(ids);
	}
	
}
